<template>
  <div id="app">
    <div>我是{{ uname }}</div>
    <div>我喜欢{{ age > 30 ? hobby[0] : hobby[1] }}</div>
    <div>今年{{ age }}岁</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      uname: '小黑子',
      hobby: ['唱', '跳', 'rap', '篮球'],
      age: '24',
    }
  },
}
</script>

<style></style>
